package com.kfgj.hkp.dao.user.impl;

import com.kfgj.hkp.common.dataaccess.mybatis.AbstractMyBatisDao;
import com.kfgj.hkp.dao.user.IUserRoleDbDao;
import com.kfgj.hkp.entity.user.UserRoleEntity;
import org.springframework.stereotype.Repository;

/**
 *
 * @author liwensihan
 * @date 2018/11/7
 */
@Repository
public class UserRoleDbDaoImpl extends AbstractMyBatisDao<UserRoleEntity,Long> implements IUserRoleDbDao {
    @Override
    public int deleteByUserCode(String userCode) {
        return this.getSqlSession().delete(this.mapperNamespace+"deleteByUserCode",userCode);
    }
}
